<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
<head>
<title> Modify Info Page</title>
</head>
<body>
<h:form>
    <h:outputLabel value="Modify #{userBean.accountInfo.firstname} Login Info " />
<br></br>
<br></br>
   <h:panelGrid columns="3">
      <h:outputText value="Username :"></h:outputText>
      <h:outputText value=" #{userBean.accountInfo.username} "></h:outputText>
      <h:inputText id="username" value="#{modifyAccount.entered_username}"
                   validatorMessage="Entered Username is of Invalid Length">
         <f:validateLength minimum="2" maximum="20" /></h:inputText>

      <h:outputText value="Password :"></h:outputText>
      <h:outputText value=" #{userBean.accountInfo.password} "></h:outputText>
      <h:inputText id="password" value="#{modifyAccount.entered_password}"
                   validatorMessage="Entered Password is of Invalid Length">
         <f:validateLength minimum="2" maximum="20" /></h:inputText>


      <h:outputText value="Firstname :"></h:outputText>
      <h:outputText value=" #{userBean.accountInfo.firstname} "></h:outputText>
      <h:inputText id="firstname" value="#{modifyAccount.entered_firstname}"
                   validatorMessage="Entered Firstname is of Invalid Length">
         <f:validateLength minimum="2" maximum="25" /></h:inputText>

      <h:outputText value="Lastname :"></h:outputText>
      <h:outputText value=" #{userBean.accountInfo.lastname} "></h:outputText>
      <h:inputText id="lastname" value="#{modifyAccount.entered_lastname}"
                   validatorMessage="Entered Lastname is of Invalid Length">
         <f:validateLength minimum="2" maximum="25" /></h:inputText>

      <h:outputText value="E-Mail :"></h:outputText>
      <h:outputText value=" #{userBean.accountInfo.email} "></h:outputText>
      <h:inputText id="email" value="#{modifyAccount.entered_email}"></h:inputText>

<br></br>
      <h:commandButton value="  Enter  " 
                   action="#{modifyAccount.saveAccountInfo}"/>
    </h:panelGrid>
    </h:form>
    <h:form>
            <h:commandButton value="  Return to Main  "  
                action="#{commonBean.returnToMain}"/>
    </h:form>
</body>
</html>